import 'package:fluent_ui/fluent_ui.dart';


import 'package:jm_flutter/jm_flutter.dart';


class MyBooleanDialog extends StatelessWidget {
   const MyBooleanDialog({
    Key? key,
    this.title,
     this.content,
  }) : super(key: key);



  final String? title;
  final String? content;


  @override
  Widget build(BuildContext context) {
    return ContentDialog(

      title: Text(title??""),
      content: Text(content??""),
      actions: [
        Button(
            child: const Text('取消'),
            onPressed: () {
              back(result: false);
            }
        ),
        Button(
            child: const Text('确认'),
            onPressed: () {
              back(result: true);
            }
        )
      ],
    );
  }

}
